Skip to content

Suppress npm update notifier - #21363

Merged
lsiepel merged 1 commit into
openhab:mainfrom
wborn:suppress-npm-update-notifier
Aug 12, 2026
Merged

Suppress npm update notifier#21363
lsiepel merged 1 commit into
openhab:mainfrom
wborn:suppress-npm-update-notifier

Conversation

@wborn

@wborn wborn commented Aug 11, 2026

Copy link
Copy Markdown
Member

Description

Suppress the npm update notifier by setting NPM_CONFIG_UPDATE_NOTIFIER=false for frontend-maven-plugin executions.

Without this, npm can periodically print its update notification to stderr, which Maven reports as errors:

[ERROR] npm notice
[ERROR] npm notice New major version of npm available! 11.16.0 -> 12.0.2
[ERROR] npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2
[ERROR] npm notice To update run: npm install -g npm@12.0.2
[ERROR] npm notice

These messages do not indicate a build failure but make the build output unnecessarily look like it contains errors.

Testing

Remove npm's update-notifier timestamp to force it to check for updates again:

rm ~/.npm/_update-notifier-last-checked

Then run a new build.

The npm update notice should no longer be shown. The _update-notifier-last-checked file should also remain absent, confirming that the update notifier was disabled rather than merely suppressed because npm had recently checked for updates.

Signed-off-by: Wouter Born <github@maindrain.net>
@wborn
wborn requested a review from a team as a code owner August 11, 2026 16:22

@lsiepel lsiepel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@lsiepel
lsiepel merged commit 07cf166 into openhab:main Aug 12, 2026
2 checks passed
@lsiepel lsiepel added this to the 5.3 milestone Aug 12, 2026
@lsiepel lsiepel added the infrastructure Build system and Karaf related issues and PRs label Aug 12, 2026
@wborn
wborn deleted the suppress-npm-update-notifier branch August 12, 2026 09:37
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Aug 16, 2026
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Build system and Karaf related issues and PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants